using System;

namespace Nop.Core.Domain.XJ
{
	/// <summary>
	/// 报修记录
	/// </summary>
	public class XJMaintenance : BaseEntity
	{
		/// <summary>
		/// 巡检计划编号
		/// </summary>
		public string PNo { get; set; }
		/// <summary>
		/// 维修编号
		/// </summary>
		public string SNo { get; set; }
		/// <summary>
		/// 巡检计划Id
		/// </summary>
		public int InspectionPlanId { get; set; }
		/// <summary>
		/// 巡检记录Id
		/// </summary>
		public int InspectionId { get; set; }
		/// <summary>
		/// 巡检点
		/// </summary>
		public int PlaceId { get; set; }
		public string PlaceName { get; set; }
		/// <summary>
		/// 设施设备类别
		/// </summary>
		public int CategoryId { get; set; }
		public string CategoryName { get; set; }
		/// <summary>
		/// 情况说明
		/// </summary>
		public string Comment { get; set; }
		/// <summary>
		/// 是由分管领导指派
		/// </summary>
		public bool IsAssign { get; set; }
		/// <summary>
		/// 指派说明
		/// </summary>
		public string AssignComment { get; set; }
		/// <summary>
		/// 是外援实施
		/// </summary>
		public bool IsExternal { get; set; }
		/// <summary>
		/// 维修费用
		/// </summary>
		public decimal Total { get; set; }
		/// <summary>
		/// 责任部门
		/// </summary>
		public int ResponsibleDepartmentId { get; set; }
		/// <summary>
		/// 责任部门
		/// </summary>
		public string ResponsibleDepartmentName { get; set; }
		/// <summary>
		/// 责任班组
		/// </summary>
		public int ResponsibleTeamId { get; set; }
		/// <summary>
		/// 责任班组
		/// </summary>
		public string ResponsibleTeamName { get; set; }
		/// <summary>
		/// 责任人
		/// </summary>
		public int ResponsiblePersonId { get; set; }
		/// <summary>
		/// 责任人
		/// </summary>
		public string ResponsiblePersonName { get; set; }
		/// <summary>
		/// 维修人(一或多人)
		/// <see cref="MaintenancePersons"/>
		/// </summary>
		public string MaintenancePersonNames { get; set; }
		/// <summary>
		/// 维修备注
		/// </summary>
		public string MaintenanceComment { get; set; }
		/// <summary>
		/// 维修完成日期
		/// </summary>
		public DateTime? MaintenanceOn { get; set; }
		/// <summary>
		/// 工时（分）
		/// </summary>
		public int Minutes { get; set; }

		/// <summary>
		/// 评分
		/// </summary>
		public int Star { get; set; }
		/// <summary>
		/// 评价
		/// </summary>
		public string Evaluation { get; set; }
		/// <summary>
		/// 评价时间
		/// </summary>
		public DateTime? EvaluationOn { get; set; }
		/// <summary>
		/// 状态
		/// <see cref="MaintenanceStateEnum"/>
		/// </summary>
		public int State { get; set; }
		/// <summary>
		/// 创建人
		/// </summary>
		public int CustomerId { get; set; }
		public string CustomerName { get; set; }
		/// <summary>
		/// 部门
		/// </summary>
		public int DepartmentId { get; set; }
		public string DepartmentName { get; set; }
		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime CreatedOn { get; set; }
		/// <summary>
		/// 暂停
		/// </summary>
		public bool IsPause { get; set; }
		/// <summary>
		/// 标记删除
		/// </summary>
		public bool Deleted { get; set; }
	}
}
